// components/calendar/calendarItem.ts
Component({

  /**
   * 组件的属性列表
   */
  properties: {
    weeks:{
      type: Array
    },
    day: {
      type: Number
    },
    isToday: {
      type:Boolean
    },
    current: {
      type: Object
    }
  },

  /**
   * 组件的初始数据
   */
  data: {
  },

  /**
   * 组件的方法列表
   */
  methods: {
    chooseDate(event:any):void {
      const day = event.currentTarget.dataset.day
      this.triggerEvent("changeCalendar",day);
    },
  }
})